/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.gwc.extendsplat.sys.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 附件管理Entity
 * @author 黎俊涛
 * @version 2017-04-14
 */
public class SysAttachfile extends DataEntity<SysAttachfile> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// 上传用户
	private String filename;		// 文件名
	private String attachtype;		// 资料类型
	private String filepath;		// 文件路径
	private Long filesize;		// 文件大小
	private String [] file_label;
	private String lable_search;
	
	
	public String getLable_search() {
		return lable_search;
	}

	public void setLable_search(String lable_search) {
		this.lable_search = lable_search;
	}

	public String[] getFile_label() {
		return file_label;
	}

	public void setFile_label(String[] file_label) {
		this.file_label = file_label;
	}

	public SysAttachfile() {
		super();
	}

	public SysAttachfile(String id){
		super(id);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=1, max=100, message="文件名长度必须介于 1 和 100 之间")
	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}
	
	@Length(min=0, max=50, message="资料类型长度必须介于 0 和 50 之间")
	public String getAttachtype() {
		return attachtype;
	}

	public void setAttachtype(String attachtype) {
		this.attachtype = attachtype;
	}
	
	@Length(min=1, max=200, message="文件路径长度必须介于 1 和 200 之间")
	public String getFilepath() {
		return filepath;
	}

	public void setFilepath(String filepath) {
		this.filepath = filepath;
	}
	
	public Long getFilesize() {
		return filesize;
	}

	public void setFilesize(Long filesize) {
		this.filesize = filesize;
	}
	
}